package com.zrwl.poscloud.base.constants;

/**
 * @author liuxiaolong
 * @date 2022/7/23
 * @description
 */
public class ChargeConstants {

    /***
     * status
     */
    public static final int deleted = 0;
    public static final int notPaied = 1;//待付款
    public static final int paied = 2;//已付款
    public static final int paidding = 3;//付款中
    public static final int refund = 4;//待退款
    public static final int refunding = 6;//退款中
    public static final int refunded = 5;//已退款
    public static final int cancel = 7;//已取消
    public static final int timeOut = 8;// 超过1小时，未超过24小时，且取消成功
    public static final int repeated = 9;// 重复缴费,需人工核对后处理退款
    public static final int error = 99;// 异常业务

    /***
     * type 1：收费员应收账收费，2：用户自助应收账收费；11：收费员第三方接口充值，12：用户第三方接口充值
     */
    public static final int payableAdminPay = 1;//收费员应收账收费
    public static final int payableUserPay = 2;//用户应收账收费
    public static final int thirdAdminPay = 11;//收费员预充值
    public static final int thirdUserPay = 12;//用户预充值
    /***
     * paidWayType
     */
    public static final int paidWayType_cash = 10;//线下现金
    public static final int paidWayType_scan_wx = 11;//线下扫码到微信
    public static final int paidWayType_scan_zfb = 12;//线下扫码到微信
    public static final int paidWayType_online_wx = 21;//线上微信支付

    public static String getPaidWayName(int type) {
        switch (type) {
            case paidWayType_cash:
                return "线下现金";
            case paidWayType_scan_wx:
                return "线下扫码到微信";
            case paidWayType_scan_zfb:
                return "线下扫码到微信";
            case paidWayType_online_wx:
                return "线上微信支付";
            default:
                return "其他";
        }
    }

    public static String getTypeName(int type) {
        switch (type) {
            case payableAdminPay:
                return "收费员应收账收费";
            case payableUserPay:
                return "用户应收账收费";
            case thirdAdminPay:
                return "收费员预充值";
            case thirdUserPay:
                return "用户预充值";
            default:
                return "其他";
        }
    }
}
